package com.example.hy2110szyx.repository;

import com.example.hy2110szyx.entity.Distribution;
import com.example.hy2110szyx.entity.FlightInfo;
import com.example.hy2110szyx.entity.Route;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface DistributionMapper {

    /**
     * 根据航班编号fno查询航班舱位
     * @param fno
     * @return
     */
    Distribution queryByFno(String fno);

    /**
     * 按条件分页查询所有航班舱位
     * @param distribution
     * @return
     */
    List<Distribution> queryAllConn(Distribution distribution);


    void insertOneDistribution(Distribution distribution);


    void updateOneDistribution(Distribution distribution);

    /**
     * 根据id批量删除航班舱位
     * @param ids
     */
    void deleteSomeById(Integer[] ids);



}
